package com.wx.plugin.repository;


import com.yangzcp.userpojo.Members_account_log;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import java.math.BigDecimal;
import java.util.List;

public interface Members_account_logRepository extends JpaRepository<Members_account_log, Integer>{
    @Query("from Members_account_log where ref_member.id=?1")
    List<Members_account_log> findByMemberId(Integer id);

    @Query("from Members_account_log where ref_member.id=?1 and reson_type=?2")
    List<Members_account_log> findByMemberIdAndResonType(Integer id, Integer reson_type);

}
